#include "setscene.h"
#include "ui_setscene.h"
#include "stock.h"
extern int set_brick;
setscene::setscene(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::setscene)
{
    ui->setupUi(this);

    inite_setscene();
}

setscene::~setscene()
{
    delete ui;
}

void setscene::show_out()
{
    this->show();
}

void setscene::inite_setscene()
{

    setFixedSize(500,300);
   setWindowTitle("选择关卡");
   setWindowIcon(QIcon(":/sucai/ball.PNG"));
}



void setscene::on_brick_2_clicked()
{
    emit show_g2();
    this->close();
}

void setscene::on_brick_1_clicked()
{
    emit show_g1();
    this->close();
}

void setscene::on_brick_3_clicked()
{
    emit show_g3();
    this->close();
}

void setscene::paintEvent(QPaintEvent *)
{
    QPainter se(this);
    se.drawPixmap(0,0,600,300,QPixmap(":/sucai/blackback.png"));

}


